<?php

/*
 * Niken Larasati
 * larasati.n@students.amikom.ac.id
 */

class umum_m extends CI_Model{
    public function __construct() {
        parent::__construct();
    }
    
    function tambah($tabel,$data){
        return $this->db->insert($tabel,$data);
    }
    
    function ubah($tabel,$data,$kolom,$id){
        $this->db->where($kolom,$id);
        $this->db->update($tabel,$data);
        return $this->db->affected_rows();
    }
}
?>
